package com.code.cheney.aop;



import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

import com.code.cheney.po.UserInfo;


@Component
@Aspect
public class LogAspect {
	@Pointcut("execution(public * com.code.cheney.service.IUserService.service(com.code.cheney.po.UserInfo))&&args(userInfo)")
	public void service(UserInfo userInfo){
		
	}
	
	@Before(value="service(com.code.cheney.po.UserInfo)")
	public void before(JoinPoint joinPoint){
		System.out.println("before test"+joinPoint.getTarget());
	}
}
